package com.iary.domain.model.block;

import java.util.Date;

import org.apache.commons.lang.builder.ReflectionToStringBuilder;
import org.apache.commons.lang.builder.StandardToStringStyle;

import com.iary.domain.model.Entity;

public class Block implements Entity<Block, Long> {

	private static final long serialVersionUID = -2168494867964642397L;

	private Long id;
	private BlockDesc blockDesc;
	private Date createDate;
	private Date lastUpdateDate;

	Block() {

	}

	public Block(BlockDesc blockDesc) {
		this.blockDesc = blockDesc;
	}

	public BlockDesc getBlockDesc() {
		return blockDesc;
	}

	public void setBlockDesc(BlockDesc blockDesc) {
		this.blockDesc = blockDesc;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Date getLastUpdateDate() {
		return lastUpdateDate;
	}

	public void setLastUpdateDate(Date lastUpdateDate) {
		this.lastUpdateDate = lastUpdateDate;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Override
	public Long getId() {
		return id;
	}

	@Override
	public boolean sameIdentityAs(Block other) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public String toString() {
		return ReflectionToStringBuilder.toString(this,
				new StandardToStringStyle());
	}

}
